package com.xubeizhi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xubeizhi.entity.FriendLink;
import com.xubeizhi.vo.FriendLinkVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 友情链接Mapper接口
 * @author mi
 * @create 2023/3/7 13:46
 */
@Repository
@Mapper
public interface FriendLinkMapper extends BaseMapper<FriendLink> {
    Integer getMaxSort();

    void top(@Param("id") Integer id,@Param("sort")int sort);


    List<FriendLinkVO> selectLinkList(@Param("status") Integer status);

}
